<?php
	foreach($posts as $post){
?>
<div class="item">
	<div class="pic"><a href="#">xxxx</a></div><!--End pic-->
	<div class="item-content">
		<div class="operation">
			<a class="delete" href="#">delete</a>
			<a class="edit" href="/dorimeme/posts/update/<?php echo $post['Post']['id'] ?>">edit</a>
		</div><!--End operation-->
		<p class="author">
			<a href="#">author:</a>
		</p><!--End author-->
		<div class="text-content">
			<?php echo $post['Post']['excerpt'] ?>
		</div><!--End text-content-->
		<p class="tag">
			<?php
				foreach($post['Post']['tags'] as $tag){
					echo '<a href="#">#'.$tag['name'].'</a>';
				}
			?>
		</p>
		<div class="clear"></div>
	</div><!--End item-content-->
	<div class="clear"></div>
</div><!--End item-->
<?php		
	}
?>